package org.boyan.modules.cgform.model;

/**
 * @author: zhuxiaobao
 * @time: 2021/9/26 12:22
 */

public class OnlColumn {
    private String title;

    private String dataIndex;

    private String align;

    private String customRender;

    private d scopedSlots;

    private String hrefSlotName;

    private int showLength;

    public void setTitle(String title) {
        this.title = title;
    }

    public void setDataIndex(String dataIndex) {
        this.dataIndex = dataIndex;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    public void setCustomRender(String customRender) {
        this.customRender = customRender;
    }

    public void setScopedSlots(d scopedSlots) {
        this.scopedSlots = scopedSlots;
    }

    public void setHrefSlotName(String hrefSlotName) {
        this.hrefSlotName = hrefSlotName;
    }

    public void setShowLength(int showLength) {
        this.showLength = showLength;
    }

    public void setSorter(boolean sorter) {
        this.sorter = sorter;
    }

    public void setLinkField(String linkField) {
        this.linkField = linkField;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof OnlColumn))
            return false;
        OnlColumn onlColumn = (OnlColumn)o;
        if (!onlColumn.canEqual(this))
            return false;
        if (getShowLength() != onlColumn.getShowLength())
            return false;
        if (isSorter() != onlColumn.isSorter())
            return false;
        String str1 = getTitle(), str2 = onlColumn.getTitle();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2))
            return false;
        String str3 = getDataIndex(), str4 = onlColumn.getDataIndex();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4))
            return false;
        String str5 = getAlign(), str6 = onlColumn.getAlign();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6))
            return false;
        String str7 = getCustomRender(), str8 = onlColumn.getCustomRender();
        if ((str7 == null) ? (str8 != null) : !str7.equals(str8))
            return false;
        d d1 = getScopedSlots(), d2 = onlColumn.getScopedSlots();
        if ((d1 == null) ? (d2 != null) : !d1.equals(d2))
            return false;
        String str9 = getHrefSlotName(), str10 = onlColumn.getHrefSlotName();
        if ((str9 == null) ? (str10 != null) : !str9.equals(str10))
            return false;
        String str11 = getLinkField(), str12 = onlColumn.getLinkField();
        if ((str11 == null) ? (str12 != null) : !str11.equals(str12))
            return false;
        String str13 = getTableName(), str14 = onlColumn.getTableName();
        return !((str13 == null) ? (str14 != null) : !str13.equals(str14));
    }

    protected boolean canEqual(Object other) {
        return other instanceof OnlColumn;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        int var11 = var2 * 59 + this.getShowLength();
        var11 = var11 * 59 + (this.isSorter() ? 79 : 97);
        String var3 = this.getTitle();
        var11 = var11 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getDataIndex();
        var11 = var11 * 59 + (var4 == null ? 43 : var4.hashCode());
        String var5 = this.getAlign();
        var11 = var11 * 59 + (var5 == null ? 43 : var5.hashCode());
        String var6 = this.getCustomRender();
        var11 = var11 * 59 + (var6 == null ? 43 : var6.hashCode());
        d var7 = this.getScopedSlots();
        var11 = var11 * 59 + (var7 == null ? 43 : var7.hashCode());
        String var8 = this.getHrefSlotName();
        var11 = var11 * 59 + (var8 == null ? 43 : var8.hashCode());
        String var9 = this.getLinkField();
        var11 = var11 * 59 + (var9 == null ? 43 : var9.hashCode());
        String var10 = this.getTableName();
        var11 = var11 * 59 + (var10 == null ? 43 : var10.hashCode());
        return var11;
    }

    @Override
    public String toString() {
        return "OnlColumn(title=" + getTitle() + ", dataIndex=" + getDataIndex() + ", align=" + getAlign() + ", customRender=" + getCustomRender() + ", scopedSlots=" + getScopedSlots() + ", hrefSlotName=" + getHrefSlotName() + ", showLength=" + getShowLength() + ", sorter=" + isSorter() + ", linkField=" + getLinkField() + ", tableName=" + getTableName() + ")";
    }

    public String getTitle() {
        return this.title;
    }

    public String getDataIndex() {
        return this.dataIndex;
    }

    public String getAlign() {
        return this.align;
    }

    public String getCustomRender() {
        return this.customRender;
    }

    public d getScopedSlots() {
        return this.scopedSlots;
    }

    public String getHrefSlotName() {
        return this.hrefSlotName;
    }

    public int getShowLength() {
        return this.showLength;
    }

    private boolean sorter = false;

    private String linkField;

    private String tableName;

    public boolean isSorter() {
        return this.sorter;
    }

    public String getLinkField() {
        return this.linkField;
    }

    public String getTableName() {
        return this.tableName;
    }

    public OnlColumn(String title, String dataIndex) {
        this.align = "center";
        this.title = title;
        this.dataIndex = dataIndex;
    }

    public OnlColumn() {}
}
